package com.nuaa.yupicturebackend.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * @Author ortonzhu
 * @Date 2025/2/23 14:11
 */
@Aspect
@Component
@Slf4j
public class BoleCodeInterceptor {


    public Object doInterceptor(ProceedingJoinPoint joinPoint) throws Throwable {
        log.info("获取到当前的活动信息");
        log.info("记录调用时间:{}", LocalDateTime.now());
        log.info("调用的参数:{}", joinPoint.getArgs());
        return joinPoint.proceed();
    }
}
